package com.chebawang.repository;

import com.chebawang.entity.Account;
import com.chebawang.entity.Machine;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MachineRepository extends JpaRepository<Machine, String>, JpaSpecificationExecutor<Machine> {


    Page<Machine> findAllBy(Pageable pageable);

    List<Machine> findAllByIsdel(boolean isdel);
}
